package com.pwt.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author dw
 * @version 1.0.0
 * @date 2021/10/18
 */
@Data
@Schema(name = "图表测试值模型")
public class ChartValueModel {

    @Schema(name = "k1000",description = "零件号")
    private Integer k1000;

    @Schema(name = "k1002",description = "零件名称")
    private String k1002;

    @Schema(name = "k2000",description = "被测参数顺序号")
    private Short k2000;

    @Schema(name = "k2002",description = "被测参数名称")
    private String k2002;

    @Schema(name = "k0014",description = "零件id")
    private String k0014;

    @Schema(name = "k0005",description = "报错原因")
    private String k0005;

    @Schema(name = "scrap",description = "1-ok ,0-scrap")
    private Integer scrap;

    @Schema(name = "k0006",description = "批次号")
    private String k0006;

    @Schema(name = "k2009",description = "测量尺寸 symbol")
    private Short k2009;

    @Schema(name = "k2142",description = "单位")
    private String k2142;

    @Schema(name = "k0001",description = "测量值")
    private Double k0001;

    @Schema(name = "dateTime",description = "测试时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date  dateTime;

    @Schema(name = "state",description = "状态 0 -不合格，1-合格")
    private Integer state;
}
